<%@page contentType="text/html"%><%@ page import = "java.util.List"%><%@ page import = "pe.com.hermes.hermetic.negocio.ultil.CadenaUtil"%><%@ page import = "java.text.DecimalFormat"%><%@ page import = "java.text.DecimalFormatSymbols"%><%@ page import = "pe.com.hermes.hermetic.beans.ComprobanteServicioBean"%><% List listaArchivo = (List)request.getAttribute("listaDetalleAperturaSobre");
// Formato Decimal
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
dfs.setDecimalSeparator('.');
dfs.setGroupingSeparator(',');
DecimalFormat df1 = new DecimalFormat("###,###,##0.00", dfs);
df1.setGroupingSize(3); 
// Formato Entero
DecimalFormatSymbols dfe = new DecimalFormatSymbols();                        
DecimalFormat dfle = new DecimalFormat("########0", dfe); 

out.print(CadenaUtil.completaEspaciosBlanco("USUARIO"," ","R",45));
out.print(CadenaUtil.completaEspaciosBlanco("FECHA CONT"," ","R",10));
out.print(CadenaUtil.completaEspaciosBlanco("C/S"," ","R",12));
out.print(CadenaUtil.completaEspaciosBlanco("RESPONSABLE"," ","R",100));
out.print(CadenaUtil.completaEspaciosBlanco("SOBRES"," ","R",6));
out.print(CadenaUtil.completaEspaciosBlanco("BOVEDA"," ","R",25));
//out.print(CadenaUtil.completaEspaciosBlanco("DICE CONT TOT"," ","L",14));
//out.print(CadenaUtil.completaEspaciosBlanco("CONTIENE TOT"," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco("DICE CONTENER"," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco("CONTIENE"," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco("NUM ACT"," ","R",7));
out.print(CadenaUtil.completaEspaciosBlanco("ANOMALIA"," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco("TIPO DE ANOMALIA"," ","R",45));
out.print(CadenaUtil.completaEspaciosBlanco("OBSERVACIONES"," ","R",100));
out.print("\r\n");
for (int idx = 0; idx < listaArchivo.size(); idx++){ComprobanteServicioBean cServicioBean = (ComprobanteServicioBean)listaArchivo.get(idx);
out.print(CadenaUtil.completaEspaciosBlanco((cServicioBean.getDesPunto()!=null?cServicioBean.getDesPunto():"")," ","R",45));
out.print(CadenaUtil.completaEspaciosBlanco((cServicioBean.getFecha()!=null?cServicioBean.getFecha():"")," ","R",10));
out.print(CadenaUtil.completaEspaciosBlanco((cServicioBean.getNumero()!=null?cServicioBean.getNumero():"")," ","L",12));
out.print(CadenaUtil.completaEspaciosBlanco((cServicioBean.getResponsable()!=null?cServicioBean.getResponsable():"")," ","R",100));
out.print(CadenaUtil.completaEspaciosBlanco(String.valueOf(dfle.format(cServicioBean.getSobres()))," ","L",6));
out.print(CadenaUtil.completaEspaciosBlanco((String)request.getAttribute("bovedaDesc")," ","R",25));
//out.print(CadenaUtil.completaEspaciosBlanco(String.valueOf(df1.format(cServicioBean.getMontDiceContTotal()))," ","L",14));
//out.print(CadenaUtil.completaEspaciosBlanco(String.valueOf(df1.format(cServicioBean.getMontContieneTotal()))," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco(String.valueOf(df1.format(cServicioBean.getMontDiceCont()))," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco(String.valueOf(df1.format(cServicioBean.getMontContiene()))," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco((cServicioBean.getNumActa()!=null?cServicioBean.getNumActa():"")," ","R",7));
out.print(CadenaUtil.completaEspaciosBlanco(String.valueOf(df1.format(cServicioBean.getMontAnomalia()))," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco((cServicioBean.getDesTipo()!=null?cServicioBean.getDesTipo():"")," ","R",45));
out.print(CadenaUtil.completaEspaciosBlanco((cServicioBean.getTxtObserv()!=null?cServicioBean.getTxtObserv():"")," ","R",100));
out.print("\r\n");
}
out.print(CadenaUtil.completaEspaciosBlanco("TOTAL"," ","R",45));
out.print(CadenaUtil.completaEspaciosBlanco(" "," ","R",10));
out.print(CadenaUtil.completaEspaciosBlanco(" "," ","R",12));
out.print(CadenaUtil.completaEspaciosBlanco(" "," ","R",100));
out.print(CadenaUtil.completaEspaciosBlanco(" "," ","R",6));
out.print(CadenaUtil.completaEspaciosBlanco(" "," ","R",25));
//out.print(CadenaUtil.completaEspaciosBlanco(" "," ","L",14));
//out.print(CadenaUtil.completaEspaciosBlanco(" "," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco((String)request.getAttribute("montoTotalDiceContener")," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco((String)request.getAttribute("montoTotalContiene")," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco(" "," ","R",7));
out.print(CadenaUtil.completaEspaciosBlanco((String)request.getAttribute("montoTotalAnomalia")," ","L",14));
out.print(CadenaUtil.completaEspaciosBlanco(" "," ","R",45));
out.print(CadenaUtil.completaEspaciosBlanco(" "," ","R",100));
%>